import { _axios, config } from '../plugins/axios.js'
import axios, { AxiosPromise } from "axios"
import Msg from "@/interface/Msg";

export function getMineInfo() {
    return _axios.get('/user/mine')
}

export function setPhone(params): AxiosPromise<Msg> | Msg {
    return _axios.post('/user/set/phone?phone=' + params)
}

export function setPswd(params: { pswd: bigint }): AxiosPromise<Msg> | Msg {
    return _axios.post('/user/set/pswd', { params })
}
export function getSafe() {
    return _axios.get('/user/issafe')
}